home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / CMPRComponent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  2.5 KB  |  118 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CMPRComponent.h
  3.  
  4.      Contains:    ColorSync ProfileResponder Components Interface 
  5.  
  6.      Version:    Technology:    ColorSync 2.1
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1993, 1995, 1997 by Apple Computer, Inc. All rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __CMPRCOMPONENT__
  19. #define __CMPRCOMPONENT__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. #ifndef __QUICKDRAW__
  25. #include <Quickdraw.h>
  26. #endif
  27. #ifndef __COMPONENTS__
  28. #include <Components.h>
  29. #endif
  30. #ifndef __CMAPPLICATION__
  31. #include <CMApplication.h>
  32. #endif
  33.  
  34.  
  35.  
  36. #if PRAGMA_ONCE
  37. #pragma once
  38. #endif
  39.  
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43.  
  44. #if PRAGMA_IMPORT
  45. #pragma import on
  46. #endif
  47.  
  48. #if PRAGMA_STRUCT_ALIGN
  49.     #pragma options align=mac68k
  50. #elif PRAGMA_STRUCT_PACKPUSH
  51.     #pragma pack(push, 2)
  52. #elif PRAGMA_STRUCT_PACK
  53.     #pragma pack(2)
  54. #endif
  55.  
  56.  
  57. enum {
  58.     CMPRInterfaceVersion        = 0
  59. };
  60.  
  61. /* Component function selectors */
  62.  
  63. enum {
  64.     kCMPRGetProfile                = 0,
  65.     kCMPRSetProfile                = 1,
  66.     kCMPRSetProfileDescription    = 2,
  67.     kCMPRGetIndexedProfile        = 3,
  68.     kCMPRDeleteDeviceProfile    = 4
  69. };
  70.  
  71.  
  72. EXTERN_API( CMError )
  73. CMGetProfile                    (ComponentInstance         pr,
  74.                                  CMProfileHandle         aProfile,
  75.                                  CMProfileHandle *        returnedProfile)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0000, 0x7000, 0xA82A);
  76.  
  77. EXTERN_API( CMError )
  78. CMSetProfile                    (ComponentInstance         pr,
  79.                                  CMProfileHandle         newProfile)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  80.  
  81. EXTERN_API( CMError )
  82. CMSetProfileDescription            (ComponentInstance         pr,
  83.                                  long                     DeviceData,
  84.                                  CMProfileHandle         hProfile)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  85.  
  86. EXTERN_API( CMError )
  87. CMGetIndexedProfile                (ComponentInstance         pr,
  88.                                  CMProfileSearchRecordHandle  search,
  89.                                  CMProfileHandle *        returnProfile,
  90.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
  91.  
  92. EXTERN_API( CMError )
  93. CMDeleteDeviceProfile            (ComponentInstance         pr,
  94.                                  CMProfileHandle         deleteMe)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  95.  
  96.  
  97.  
  98. #if PRAGMA_STRUCT_ALIGN
  99.     #pragma options align=reset
  100. #elif PRAGMA_STRUCT_PACKPUSH
  101.     #pragma pack(pop)
  102. #elif PRAGMA_STRUCT_PACK
  103.     #pragma pack()
  104. #endif
  105.  
  106. #ifdef PRAGMA_IMPORT_OFF
  107. #pragma import off
  108. #elif PRAGMA_IMPORT
  109. #pragma import reset
  110. #endif
  111.  
  112. #ifdef __cplusplus
  113. }
  114. #endif
  115.  
  116. #endif /* __CMPRCOMPONENT__ */
  117.  
  118.